<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
    

        function Person() {

        }

        Car.prototype = {
            constructor: Person
        }
        
        function Car() {
        }
    
        var car = new Car(); //原型被改变，控制台第一行，对象前面显示的仍然是 Car，意思是由哪个构造函数生产的
    
        console.log(car.constructor);
        console.log(Car.prototype);
    </script>
</body>
</html>